-
Notifications
You must be signed in to change notification settings - Fork 532
feat: bump beats and replace global loggers #16717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
bump beats fix compile errors propagare logger and remove global loggers use logptest in tests
This pull request does not have a backport label. Could you fix it @kruskall? 🙏
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like this test is missing from the update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same question regarding the removed cleanup, otherwise LGTM
This pull request is now in conflicts. Could you fix it @kruskall? 🙏
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just one query
@@ -54,7 +55,7 @@ var testConfigCommand = &cobra.Command{ | |||
if cfg.Output.Name() == "elasticsearch" { | |||
esOutputConfig = cfg.Output.Config() | |||
} | |||
if _, err := beaterconfig.NewConfig(cfg.APMServer, esOutputConfig); err != nil { | |||
if _, err := beaterconfig.NewConfig(cfg.APMServer, esOutputConfig, logp.NewLogger("")); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use the testing logger here too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, this is not test code
Motivation/summary
bump beats
fix compile errors
propagare logger and remove global loggers
use logptest in tests
Checklist
For functional changes, consider:
How to test these changes
Related issues
Blocked by elastic/elastic-agent-libs#312